//这里是你所有移动端的接口封装
import {get,post} from './index'

//轮播图
export const getBanner = ()=>get('/getbanner')
//首页商品
export const homeGoods = ()=>get('/gethortgoods')
//商品详情
export const goodsInfo = params=>get('/getgoodsinfo',params)
//一、二级分类
export const getCate = ()=>get('/getcates')
//商品列表
export const goodsList = params=>get('/getgoodlist',params)
// 注册
export const register = params=>post('/register',params)
// 登录
export const login = params=>post('/login',params)

// 加入购物车
export const addCart = params=>post('/cartadd',params)
// 购物车列表
export const cartList = params=>get('/cartlist',params)
// 删除购物车
export const deleteCart = params=>post('/cartdelete',params)
// 修改购物车
export const cartEdit = params=>post('/cartedit',params)


// 地址列表
export const addressList = params=>get('/addresslist',params)
// 添加地址
export const addressAdd = params=>post('/addressadd',params)
// 编辑地址
export const addressEdit = params=>post('/addressedit',params)
// 删除地址
export const addressRemove = params=>post('/addressremove',params)


// 添加订单
export const orderAdd = params=>post('/orderadd',params)
// 订单查询
export const orderList = params=>get('/orderlist',params)